package main

import (
	"fmt"
	"gin_study_blog/common"
	"gin_study_blog/core"
	"gin_study_blog/plugins/log_stash"
)

func main() {
	core.YamlInitConfig()
	// 初始化日志
	common.Log = core.InitLogger()
	// 连接数据库
	common.DB = core.InitGorm()
	log := log_stash.New("192.168.0.11", "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IiIsIm5pY2tfbmFtZSI6InVzZXIiLCJyb2xlIjoxLCJ1c2VyX2lkIjoxLCJpc3MiOiJ5Y2MiLCJleHAiOjE3MDAyMjkxMTN9.NDuny7NisHsicGB1MDoy8bBFjdhf87IT520monj5Os0")
	log.Debug(fmt.Sprintf("%s 你好", "长春"))
}
